package com.yunfeisoft.business.model;

import com.yunfeisoft.common.base.BaseModel;
import com.yunfeisoft.common.sql.record.TransientField;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
* ClassName: NursingServiceRecord
* Description: 护理服务记录表
*
* @Author: Jackie liu
* Date: 2020-05-22
*/
@Entity
@Table(name="TT_NURSING_SERVICE_RECORD")
public class NursingServiceRecord extends BaseModel implements Serializable {
	
	/**
     * Field serialVersionUID: 序列号
     */
    private static final long serialVersionUID = 1L;

	/**
     * 老人入住关联id
     */
	@Column
	private String elderId;

	@TransientField
	private String elderName;

	@TransientField
	private String sex;

	@TransientField
	private String roomNum;

	@TransientField
	private Integer nursingLevel;

	@TransientField
	private String createName;

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getNursingLevelStr() {
		if (nursingLevel == null) {
			return null;
		}
		return Elder.ElderNursingLevelEnum.valueOf(nursingLevel);
	}

	public String getSex() {
		return sex;
	}

	public String getSexStr() {
		if (StringUtils.isBlank(sex)) {
			return null;
		} else if ("1".equals(sex)) {
			return "男";
		} else {
			return "女";
		}
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(String roomNum) {
		this.roomNum = roomNum;
	}

	public Integer getNursingLevel() {
		return nursingLevel;
	}

	public void setNursingLevel(Integer nursingLevel) {
		this.nursingLevel = nursingLevel;
	}

	public String getElderName() {
		return elderName;
	}

	public void setElderName(String elderName) {
		this.elderName = elderName;
	}

	/**
     * 喂药
     */
	@Column
	private String feedingMedicine;

	/**
     * 助餐
     */
	@Column
	private String foodHelp;

	/**
     * 日常个人卫生
     */
	@Column
	private String dailyPersonalHygiene;

	/**
     * 床单元保洁
     */
	@Column
	private String bedCleaning;







	public String getElderId() {
		return elderId;
	}

	public void setElderId(String elderId) {
		this.elderId = elderId;
	}

	public String getFeedingMedicine() {
		return feedingMedicine;
	}

	public void setFeedingMedicine(String feedingMedicine) {
		this.feedingMedicine = feedingMedicine;
	}

	public String getFoodHelp() {
		return foodHelp;
	}

	public void setFoodHelp(String foodHelp) {
		this.foodHelp = foodHelp;
	}

	public String getDailyPersonalHygiene() {
		return dailyPersonalHygiene;
	}

	public void setDailyPersonalHygiene(String dailyPersonalHygiene) {
		this.dailyPersonalHygiene = dailyPersonalHygiene;
	}

	public String getBedCleaning() {
		return bedCleaning;
	}

	public void setBedCleaning(String bedCleaning) {
		this.bedCleaning = bedCleaning;
	}






}